<?php if ( ! defined('WDK_PATH')) exit('No direct script access allowed');?>
<script src="/plugin/clipboard/default/ZeroClipboard.js"></script>
<script>
(function($){
	$.fn.clipboard = function() {
		return this.each(function(){
			text = $(this).text();
			var clip = null;
			clip = new ZeroClipboard.Client();
			clip.setHandCursor( true );
			clip.addEventListener('load', function(client){});
			clip.addEventListener('mouseOver', function (client) {clip.setText(text)});
			clip.addEventListener('complete', function my_complete(client, text) {alert("복사되었습니다. "+text)});
			clip.glue($(this).attr('id'));
		});
		return this;
	};
})(jQuery);
</script>